#ifndef MYAPP_H
#define MYAPP_H

#include <QApplication>
#ifndef NOSINGLEAPP
#include <SingleApplication>
#endif
class QStringList;


class MyApp : public QApplication
{
	Q_OBJECT

public:
	MyApp(int &argc, char **argv);
//	~MyApp();
	bool alreadyRunning;
#ifndef NOSINGLEAPP
	inline const SingleApplication* getInstance(){return this->instance;}
#endif
	static QStringList pluginsDirs();
	static QStringList resourcesDirs();
	static QString homeDir();

#ifndef NOSINGLEAPP
private:
	SingleApplication* instance;
#endif

};

#endif // MYAPP_H
